﻿#include <iostream>
using namespace std;

int max(int a, int b) {
	return a > b ? a : b;
}

int max(int a, int b, int c) {
	int max = a;
	if (b > max) max = b;
	if (c > max)max = c;
	return max;
}

int main() {
	cout << "1和2中较大的值为：" << max(1, 2) << endl;
	cout << "1、2和3中较大的值为：" << max(1, 2, 3) << endl;

	cin.get();
}